
def say_hello(country):
    def wrapper(func):
        def deco(*args, **kwargs):
            if country == 'china':
                print('你好！')
            elif country == 'america':
                print('hello')
            else:
                return
            func(*args, **kwargs)
        return deco
    return wrapper


# @say_hello('china')
def chinese():
    print('我来自中国。')


# @say_hello('america')
def america():
    print('I am from America.')

# chinese()
chinese=say_hello(chinese)
print(chinese('china'))

